package com.dkm.orproject.dkmoa.service.serviceimpl.flow;

import com.dkm.orproject.dkmoa.dao.OaFlowScheduleMapper;
import com.dkm.orproject.dkmoa.domain.OaFlowSchedule;
import com.dkm.orproject.dkmoa.service.flow.OaFlowScheduleService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName : OaFlowScheduleServiceImpl  //类名
 * @Description : 流程记录服务实现类  //描述
 * @Author : 易嵘  //作者
 * @Date: 2020-09-07 10:39  //时间
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class OaFlowScheduleServiceImpl implements OaFlowScheduleService {

    /**
     * 流程记录日志
     */
    @Resource
    OaFlowScheduleMapper flowScheduleMapper;

    /**
     * 根据表单id查询记录
     * @param id 表单id
     * @return 流程记录集
     */
    @Override
    public List<OaFlowSchedule> selectFlowSchedule(Long id) {
        return flowScheduleMapper.selectFlowSchedule(id);
    }
}
